package lec_05_BST;


public class BSTNode<T extends Comparable<T>>{
	private T key;
	public BSTNode<T> parent;
	public BSTNode<T> left;
	public BSTNode<T> right;
	
	public BSTNode(T key, BSTNode<T> parent, BSTNode<T> left, BSTNode<T> right) {
		this.key = key;
		this.parent = parent;
		this.left = left;
		this.right = right;
	}
	
	public T getKey() {
		return this.key;
	}
	
	public String toString() {
		return "key:" + this.key;
	}
}
